package com.sikaryofficial.system.api.model.infomation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author : qinjinyuan
 * @desc : Topic对象JSON结构化类
 * @date : 2023/11/01 10:08
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
@ApiModel(value = "Topic对象", description = "Topic对象")
public class TopicObjVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @Min(value = 1, message = "Topic articleId could not less than 1")
    private Long topicId;

    @ApiModelProperty(value = "topic名称")
    @NotBlank(message = "Topic headline could not be black")
    @Length(max = 200, message = "Topic headline could not greater than 200 characters")
    private String headline;
}
